<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="redis" uri="http://www.shopjsp.com/redisTag/functions" %>
<c:set var="basePath" value="${redis:getSysConfig('base_path_back')}"/>
<c:set var="srcPath" value="${redis:getSysConfig('sysFileVisitRoot_back')}"/>
<c:set var="uploadPath" value="${redis:getSysConfig('uploadFileVisitRoot')}"/>
<script type="text/javascript">
    /**
     * 查看分类详情
     */
    function detailInfo(id){
        $.ajax({
            type: "POST",
            dataType: "JSON",
            url: "${basePath}/back/buyersRecord/getBuyersRecordObject.sjson",
            data: {ratingRecordId:id},
            success: function(result){
                var data = JSON.parse(result.data);
                /**重置详情页中所有html展示信息**/
                resetDetailTable("detailTable");
                /**设置展示信息**/
                $("#d_levelIcon").html("<img id='uploadImg_detail_"+id+"' class='uploadImg' onMouseOver='showDetailBigImage("+id+",3,3,0)'  onMouseOut='showDetailRebackImage("+id+",1,1)' src='${uploadPath}/"+data[0].levelIcon+"' onerror='this.src=\"${srcPath}/common/images/mrbj.png\"' width='60px' height='20px' />");
                $("#d_loginName").html(data[0].loginName);
                $("#d_phone").html(data[0].phone);
                $("#d_buyersLevel").html(data[0].buyersLevel);
                $("#d_buyerRank").html(data[0].buyerRank);
                $("#d_minRefValue").html(data[0].minRefValue);
                $("#d_maxRefValue").html(data[0].maxRefValue);
                $("#d_levelDiscountValue").html(data[0].levelDiscountValue);
                $("#d_remark").html(data[0].remark);
                if(data[0].optionDate!=""&&data[0].optionDate!=undefined){
                    $("#d_optionDate").html(new Date(data[0].optionDate).Format("yyyy-MM-dd hh:mm:ss"));
                }
                $("#d_operator").html(data[0].operator);
            }
        });
    }
</script>
<!--详情模态框（Modal） -->
<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
	<div class="modal-dialog" style="width:70%">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h5 class="modal-title" id="myModalLabel">会员等级详情</h5>
			</div>
			<div class="modal-body">
				<table id="detailTable" align="center" class="addOrEditTable table table-bordered" style="width:100%;">
					<tr>
						<td class="toright_td" width="150px">等级图标:</td><td  class="toleft_td" colspan="3">&nbsp;&nbsp;<span id="d_levelIcon"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">登录名称:</td><td  class="toleft_td" width="250px">&nbsp;&nbsp;<span id="d_loginName"></span></td>
						<td class="toright_td" width="150px">手机号:</td><td  class="toleft_td" width="250px">&nbsp;&nbsp;<span id="d_phone"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">买家等级:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_buyersLevel"></span></td>
						<td class="toright_td" width="150px">买家头衔:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_buyerRank"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">最小参考值:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_minRefValue"></span></td>
						<td class="toright_td" width="150px">最大参考值:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_maxRefValue"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">等级折扣值:</td><td  class="toleft_td" colspan="3">&nbsp;&nbsp;<span id="d_levelDiscountValue"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">备注:</td><td  class="toleft_td" colspan="3">&nbsp;&nbsp;<span id="d_remark"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">操作时间:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_optionDate"></span></td>
						<td class="toright_td" width="150px">操作人:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_operator"></span></td>
					</tr>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>